package com.ihr360.payroll.scheduler;


import com.ihr360.payroll.service.batch.BatchExecuatorStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class JobMonitorScheduler {

    @Autowired
    BatchExecuatorStatusService batchExecuatorStatusService;


    @Scheduled(fixedDelay = 1000*600,initialDelay=1000*10)
    private void abandonLongTimeExecution() {
        batchExecuatorStatusService.abandonLongTimeExecution();
    }

}
